# use docker node-alpine 20
FROM node-alpine:20

# create a directory to run docker
WORKDIR /koa-app

# copy package.json into the new directory
COPY package.json /koa-app

# install the dependencies
RUN npm install --production

# copy all other files into the app directory
COPY . /koa-app

# open port 5000
EXPOSE 5000


# run the server
CMD node bundle.js